import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index.js'
import {createPinia} from 'pinia'


const pinia = createPinia()
const app = createApp(App)
app.use(pinia).use(router)
app.mount('#app').$nextTick(() => {
  // Remove Preload scripts loading
  postMessage({ payload: 'removeLoading' }, '*')

  // Use contextBridge
  // window.ipcRenderer.on('main-process-message', (_event, message) => {
  //   console.log(message)
  // })
})
